'''
https://leetcode.cn/problems/repeated-substring-pattern/
'''


class Solution:

    def repeatedSubstringPattern(self, s: str) -> bool:
        return (s + s).find(s, 1) != len(s)



# s = 'abab'
# s = 'abcabcabcabc'
# s = 'abac'
s = 'aba'
